/** 商品轮播图接口模块 */
import axios from "../utils/request"


// 查询轮播图数据
export const getBannerList = () => axios({
    url: "/api/bannerlist"
})


// 添加轮播图数据
export const addBanner = bannerForm => axios({
    url: "/api/banneradd",
    method: "POST",
    data: bannerForm
})


// 删除轮播图数据
export const delBanner = id => axios({
    url: "/api/bannerdelete",
    method: "POST",
    data: { id }
})

// 编辑轮播图数据
export const editBanner = bannerForm => axios({
    url: "/api/banneredit",
    method: "POST",
    data: bannerForm
})